/*
 * Help.cpp
 *
 *  Created on: Apr 12, 2014
 *      Author: carlos
 */

#include "Help.h"

Help::Help(string claveComando, string tipoComandoLeyenda,
		list<Command*> comandos) :
		Command(claveComando, tipoComandoLeyenda,NULL), comandos(comandos) {

}

Help::~Help() {
}

void Help::execute(int argc, char** argv) {
	std::cout << ' ';
	for (std::list<Command*>::iterator it = comandos.begin();
			it != comandos.end(); it++) {
		std::cout << *(*it) << ' ';
	}
	cout << endl;

}
